<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>Namespace Sample.Machining | HiAPI-C# 2025 </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="Namespace Sample.Machining | HiAPI-C# 2025 ">
      
      <meta name="description" content="The Sample.Machining namespace contains comprehensive examples for creating and managing machining verification and optimization projects using the  and  APIs. This namespace demonstrates the complete workflow of building verification projects from scratch, including defining cutting tool geometries with , configuring tool holders with , setting up tool libraries, defining fixture and workpiece geometries, configuring machine kinematics, and setting material properties. These examples are particularly valuable for developers who need to programmatically create complete verification and optimization projects without relying on the HiNC GUI, providing reference code for implementing advanced CNC verification and simulation functionality.">
      <link rel="icon" href="../../img/HiAPI.favicon.ico">
      <link rel="stylesheet" href="../../public/docfx.min.css">
      <link rel="stylesheet" href="../../public/main.css">
      <meta name="docfx:navrel" content="../../toc.html">
      <meta name="docfx:tocrel" content="toc.html">
      
      <meta name="docfx:rel" content="../../">
      
      
      
      <meta name="loc:inThisArticle" content="In this article">
      <meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
      <meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
      <meta name="loc:tocFilter" content="Filter by title">
      <meta name="loc:nextArticle" content="Next">
      <meta name="loc:prevArticle" content="Previous">
      <meta name="loc:themeLight" content="Light">
      <meta name="loc:themeDark" content="Dark">
      <meta name="loc:themeAuto" content="Auto">
      <meta name="loc:changeTheme" content="Change theme">
      <meta name="loc:copy" content="Copy">
      <meta name="loc:downloadPdf" content="Download PDF">

      <script type="module" src="./../../public/docfx.min.js"></script>

      <script>
        const theme = localStorage.getItem('theme') || 'auto'
        document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
      </script>

  </head>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../../index.html">
            <img id="logo" class="svg" src="../../img/HiAPI.logo.png" alt="">
            
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Sample.Machining">

  <h1 id="Sample_Machining" data-uid="Sample.Machining" class="text-break">Namespace Sample.Machining</h1>
  <div class="markdown level0 summary"><p>The Sample.Machining namespace contains comprehensive examples for creating and managing machining verification and optimization projects using the <a class="xref" href="../../api/Hi.Machining.html">Hi.Machining</a> and <a class="xref" href="../../api/Hi.MachiningProcs.html">Hi.MachiningProcs</a> APIs. This namespace demonstrates the complete workflow of building verification projects from scratch, including defining cutting tool geometries with <a class="xref" href="../../api/Hi.Milling.Cutters.html">Hi.Milling.Cutters</a>, configuring tool holders with <a class="xref" href="../../api/Hi.NcMech.Holders.html">Hi.NcMech.Holders</a>, setting up tool libraries, defining fixture and workpiece geometries, configuring machine kinematics, and setting material properties. These examples are particularly valuable for developers who need to programmatically create complete verification and optimization projects without relying on the HiNC GUI, providing reference code for implementing advanced CNC verification and simulation functionality.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="markdown level0 remarks"></div>

    <h3 id="classes">
Classes
</h3>
    <dl class="jumplist">
      <dt><a class="xref" href="Sample.Machining.DemoBuildGeomOnlyMachiningProject.html">DemoBuildGeomOnlyMachiningProject</a></dt>
      <dd></dd>
    </dl>
    <dl class="jumplist">
      <dt><a class="xref" href="Sample.Machining.DemoBuildMachiningProject.html">DemoBuildMachiningProject</a></dt>
      <dd><p>Demonstrates how to create and configure a <a class="xref" href="../../api/Hi.MachiningProcs.MachiningProject.html">MachiningProject</a> programmatically.
This sample shows how to set up <a class="xref" href="../../api/Hi.Milling.Cutters.MillingCutter.html">MillingCutter</a>, <a class="xref" href="../../api/Hi.NcMech.Holders.CylindroidHolder.html">CylindroidHolder</a>,
<a class="xref" href="../../api/Hi.Milling.MillingTools.MillingTool.html">MillingTool</a>, <a class="xref" href="../../api/Hi.NcMech.Fixtures.Fixture.html">Fixture</a>, <a class="xref" href="../../api/Hi.NcMech.Workpieces.Workpiece.html">Workpiece</a>,
and save the project configuration to a file.</p>
</dd>
    </dl>
    <dl class="jumplist">
      <dt><a class="xref" href="Sample.Machining.DemoMillingByCutterLocation.html">DemoMillingByCutterLocation</a></dt>
      <dd></dd>
    </dl>
    <dl class="jumplist">
      <dt><a class="xref" href="Sample.Machining.DemoRenderingMachiningProcessAndStripPosSelection.html">DemoRenderingMachiningProcessAndStripPosSelection</a></dt>
      <dd><p>Demonstrates integration of machining process visualization with interactive strip position selection.
Shows how to load a machining project, configure rendering options, and implement user interaction.
Provides a complete example of a 3D visualization application with HiAPI and WPF.</p>
</dd>
    </dl>
    <dl class="jumplist">
      <dt><a class="xref" href="Sample.Machining.DemoUseMachiningProject.html">DemoUseMachiningProject</a></dt>
      <dd><p>Demonstrates how to load and use an existing <a class="xref" href="../../api/Hi.MachiningProcs.MachiningProject.html">MachiningProject</a> instance.
This sample shows how to set up event handlers for messages and machining step objects,
execute NC files, and properly manage project resources using
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable.dispose">Dispose()</a>.</p>
</dd>
    </dl>


</article>

        <div class="contribution d-print-none">
        </div>


      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top text-secondary">
      <div class="container-xxl">
        <div class="flex-fill">
          <span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
        </div>
      </div>
    </footer>
  </body>
</html>
